import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;


public class Generate {
	
	public Generate() throws IOException,FileNotFoundException{
		BufferedReader br = new BufferedReader(new FileReader("words.txt"));
		BufferedWriter bw = new BufferedWriter(new FileWriter("new_words.txt"));
		String line;
		while((line=br.readLine())!=null){
			add(line, bw);
		}
		br.close();bw.close();
	}
	
	private void add(String word,BufferedWriter bw) throws IOException{
		bw.write(word+"\n");
		bw.write(word.toLowerCase()+"\n");
		bw.write(word.toUpperCase()+"\n");
		char[] ch = word.toLowerCase().toCharArray();
		for(int i=0;i<word.length();++i){
			char c = ch[i];
			if(c=='a'|| c=='e' || c=='i' || c=='o' || c=='u'){
				ch[i] = 'a'; 
			}
		}
		bw.write(new String(ch)+"\n");
		String temp = "";
		for(int i=0;i<word.length();++i){
			temp += word.charAt(i);
			temp += word.charAt(i);
			temp += word.charAt(i);
		}
		bw.write(temp+"\n");
	}
	
	

	public static void main(String[] args) throws FileNotFoundException, IOException {
		// TODO Auto-generated method stub
		Generate test = new Generate();
	}

}
